package com.heshida.service.impl;

import com.heshida.mapper.SearchMapper;
import com.heshida.po.Food;
import com.heshida.service.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SearchServiceImpl implements SearchService {
    @Autowired
    private SearchMapper searchMapper;

    public List<Food> findBySearchKey(String searchKey) {
        return searchMapper.findBySearchKey(searchKey);
    }
}
